<?php
namespace app\user\event\listeners\user;

use app\user\logic\user\Account;
use app\user\logic\user\UserLoginRecord as Record;

/**
 * 用户登录记录
 */
class UserLoginRecord
{
    public static function handle(Account $user)
    {
        if ($user->getAttr('id')) {
            Record::write($user->getAttr('id'));
        }

    }
}
